#ifndef __DRIVER_FLASH_H__
#define __DRIVER_FLASH_H__

#include "stm32f0xx.h"

#define UIDADR 0x1FFFF7AC

#define FLASH_PAGE_SIZE ((uint32_t)0x00000400)

void Flash_Write_Protection(void);
void Flash_Read_Protection(void);
void Flash_Erase(uint32_t WriteAddr, uint8_t NbrOfPage);
void Flash_Program_Word(uint32_t WriteAddr, uint32_t Data);
void Flash_Program_HalfWord(uint32_t WriteAddr, uint16_t Data);
void Flash_Program_Allow(void);
void Flash_Program_Forbid(void);
void Flash_Save_Handler(void);

#endif
